.banner{
    background-color: #f5f5f5;
    height: 500px;
}

.banner .wrapper{
    position: relative;
    height: 500px;
    overflow: hidden;
    /* background-color: aqua; */
}


.banner .pic{
    display: flex;
    /* flex布局，父级宽度不够，子级被挤小，不想挤小，增大父级尺寸 */
    width: 3720px;
}

/* 侧导航 */

.banner .subnav{
    position: absolute;
    top: 0;
    left: 0;
    width: 250px;
    height: 500px;
    background-color: rgba(0,0,0,0.42);
}

.subnav li{
    display: flex;
    justify-content: space-between;
    padding-left: 30px;
    padding-right: 12px;
    height: 50px;
    line-height: 50px;
    color: #fff;
    cursor: pointer;
}

.subnav li:hover{
    background-color: #00BE9A;
}

.subnav li a{
    margin-right: 5px;
    color: #fff;
    font-size: 14px;
}


.subnav li .classify{
    margin-right: 14px;
    font-weight: 500;
    font-size: 16px;
}

.subnav li .iconfont{
    font-size: 14px;
}

/* 图片选择器 */

.banner ol{
    position: absolute;
    right: 16px;
    bottom: 17px;
    display: flex;
}

.banner ol li{
    margin-right: 8px;
    width: 22px;
    height: 22px;
    /* background-color: #fff; */
    border-radius: 50%;
    cursor: pointer;
}

.banner ol i{
    /* i是行内，需要转显示模式*/
    display: block;
    margin: 4px;
    width: 14px;
    height: 14px;
    background-color: rgba(255,255,255,0.5);
    border-radius: 50%;
}

.banner ol i:hover{
    background-color: #fff;
}

.banner ol li:hover{
    background-color: rgba(255,255,255,0.5);
}

.banner ol .active{
    background-color: rgba(255,255,255,0.5);
}

.banner ol .active i{
    background-color: #fff;
}


/* 好物标题 --公共样式 */
.title{
    display: flex;
    justify-content: space-between;
    margin-top: 40px;
    margin-bottom: 30px;
    height: 42px;
}

.title .left{
    display: flex;
}

.title .left h3{
    margin-right: 35px;
    font-size: 30px;
    line-height: 42px;
}

.title .left p{
    /* margin-top: 16px; */
    /* 侧轴底部对齐 */
    align-self: flex-end;
    color: #A1A1A1;
}

.title .right{
    display: flex;
}

.title .right .more{
    color: #A1A1A1 ;
    line-height: 42px;
}

.title .right .iconfont{
    margin-left: 10px;
}

.body{
    height: 404px;
    /* margin-bottom: 40px; */
}

.body ul{
    display: flex;
    justify-content: space-between;
}

.body li{
    width: 304px;
    height: 404px;
    background-color: #EEF9F4;
}

.body li img{
    height: 304px;
    width: 304px;
}

.body li .txt{
    text-align: center;
}

.body h4{
    margin-top: 18px;
    margin-bottom: 8px;
    font-size: 20px;
}

.good .body li p{
    color: #AA2113;
    font-size: 22px;
}

.good .body li span{
    margin-left: 4px;
}

.recommend .body li{
    background-color: #fff;
}

.recommend .body p{
    color: #A1A1A1;
    font-size: 16px;
}

/* 热门品牌 */
/* 标题 */
.brand{
    margin-top: 60px;
    background-color: #f5f5f5;
    height: 468px;
}

.brand .wrapper{
    /* 解决外边距塌陷问题 */
    overflow: hidden;
    height: 468px;
}

.brand .wrapper .title{
    position: relative;
    margin-top:40px;
    margin-bottom: 40px;
}

.brand .button{
    display: flex;
    position: absolute;
    /* 基线对齐，加上本身图片高度 */
    bottom: -25px;
    right: 0;
}

.brand .button a{
    /* display: flex; */
    height: 20px;
    width: 20px;
    text-align: center;
    line-height: 20px;
    /* color: #fff; */
}

.brand .button .pre{
    margin-right: 12px;
    background-color:#ddd;
}

.brand .button .next{  
    background-color: #00BE9A;
}

.brand .button a .iconfont{
    color: #fff;
}

/* 内容 */
.brand .body li{
     width: 244px;
    height: 306px;
}

.brand .body img{
    width: 244px;
    height: 306px;
}


/* 生鲜标题 */
.fresh .title{
    margin-top: 60px;
    margin-bottom: 20px;
}

.title .right{
    display: flex;
}

.title ul{
    display: flex;
    margin-top: 10px;
    margin-right: 58px;
}

.title .right ul a{
    display: block;
    height: 20px;
    padding: 0 7px;
    line-height: 20px;
    margin-left: 6px;
}

.title .right ul .active{
    color: #fff;
    background-color: #00BE9A;
}

.title .right ul a:hover{
    color: #fff;
    background-color: #00BE9A;
}

/* 生鲜内容 */
.content{
    display: flex;
    justify-content: space-between;
}

.content .left{
    width: 248px;
    height: 610px;
}

.content .right{
    width: 968px;
    height: 610px;
}

.content .right ul{
    display: flex;
    flex-wrap: wrap;
}

.content .right li{
    overflow: hidden;
    position: relative;
    width: 242px;
    height: 305px;
    padding: 10px 21px 0;
    /* border: 2px solid #00BE9A; */
}

.content .right li:hover{
    border: 2px solid #00BE9A;
}

/* 生鲜产品内容 */
.content .right .pic{
    width: 200px;
    height: 180px;
}

.content .right .info{
    margin-top: 14px;
    width: 200px;   
    height: 57px;
    line-height: 19px;
    font-size: 16px;
}

.content .right .info h4{
    font-size: 16px;
}

.content .right .price{
    margin-top: 7px;
    color: #AF2F22;
}

.content .right .price span{
    font-size: 22px;
}

.content .right li .cover{
    /* 隐藏绿色 */
    position: absolute;
    left: 0;
    /* bottom: 0; */
    bottom: -86px;
    width: 242px;
    height: 84px;
    background-color: #00BE9A;
    transition: all 0.5s;
}

.content .right li:hover .cover{
    bottom: 0;
}

.content .right li .cover p:nth-child(1){
    text-align: center ;
    margin-top: 15.5px;
    font-size: 18px;
    color: #fff;
    font-weight: 400;
}

.content .right li .cover p:nth-child(2){
    margin: 3px auto 6px;
    width: 120px;
    height: 1px;
    background-color: rgba(255, 255, 255, 0.11);
}

.content .right li .cover p:nth-child(3){
    text-align: center ;
    font-size: 13px;
    color: #fff;
    font-weight: 400;
}

/* 最新专题 */
.topic .title{
    margin-top: 100px;
}

.topic .topic-bd ul{
    display: flex;
    justify-content: space-between;
}

.topic .topic-bd li{
    width: 405px;
    height: 355px;
}

.topic-bd .pic{
    position: relative;
    width: 405px;
    height: 288px;
}

.topic-bd .text{
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 15px;
    width: 405px;
    height: 67px;
    font-size: 14px;
    color: #666;
}

.topic-bd .text .left{
    display: flex;
}

.topic-bd .text .left p{
    margin-right: 20px;
}

.topic-bd .text .left p:nth-child(1) .iconfont{
    color:#AA2113;
}

.topic-bd .pic .cover{
    position: absolute;
    left: 0;
    bottom: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding:  0 15px;
    width: 405px;
    height: 90px;
    color: #fff;
    background-image: linear-gradient(180deg, rgba(137,137,137,0.00) 0%, rgba(0,0,0,0.90) 100%);
}

.topic-bd .pic .cover .left h4{
    
    margin-bottom: 6px;
    font-size: 20px;
}

.topic-bd .pic .cover .right{
    padding:0 7px;
    height: 25px;
    background-color: #fff;
    color: #AA2113;
}

.topic-bd .pic .cover .right span{
    font-size: 18px;
}